The Bevel Button and Image Well Content Structure
NEW WITH THE APPEARANCE MANAGER
You can pass a pointer to the bevel button and image well content structure of typeControlButtonContentInfo
in theinBuffer
parameter ofGetControlData
to get the resource ID (for resource-based content) or handle (for handle-based content) of a color icon, picture, or icon suite in a bevel button or image well.
struct ControlButtonContentInfo { ControlContentType contentType; union { SInt16 resID; CIconHandle cIconHandle; Handle iconSuite; Handle iconRef; PicHandle picture; } u; }; typedef struct ControlButtonContentInfo ControlButtonContentInfo; typedef ControlButtonContentInfo *ControlButtonContentInfoPtr;
Field Description
contentType
- Specifies the bevel button or image well content type and whether the content is text-only, resource-based, or handle-based; see "Bevel Button and Image Well Content Type Constants". The value specified in the
contentType
field determines which of the other fields in the structure are used.resID
- If the content type specified in the
contentType
field iskControlContentIconSuiteRes
,kControlContentCIconRes
, orkControlContentPictRes
, this field contains the resource ID of a picture, color icon, or icon suite resource.cIconHandle
- If the content type specified in the
contentType
field iskControlContentCIconHandle
, this field contains a handle to a color icon.iconSuite
- If the content type specified in the
contentType
field iskControlContentIconSuiteHandle
, this field contains a handle to an icon suite.iconRef
- Reserved.
picture
- If the content type specified in the
contentType
field iskControlContentPictHandle
, this field contains a handle to a picture.